//package com.jsm.twentyfour.util;
//
//import com.jsm.twentyfour.domain.Account;
//import com.jsm.twentyfour.dto.AccountDTO;
//
//import javax.servlet.http.HttpServletRequest;
//
///**
// * create by jsm on 2019/1/23
// */
//public class SessionUtil {
//
//    private static final String ACCOUNT_KEY = "ACCOUNT_KEY";
//
//    public static void saveUser(AccountDTO accountDTO, HttpServletRequest request) {
//        request.getSession().setAttribute(ACCOUNT_KEY, accountDTO);
//    }
//
//    public static AccountDTO getUser(HttpServletRequest request){
//        return (AccountDTO) request.getSession().getAttribute(ACCOUNT_KEY);
//    }
//}
